package com.missilike.biz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.missilike.domain.request.MilAdvertForm;
import com.missilike.domain.response.MilAdvertInfo;
import com.missilike.repository.entity.MilAdvert;

import java.util.List;

/**
 * <p>
 * 广告 服务类
 * </p>
 *
 * @author kin
 * @since 2018-12-05
 */
public interface IMilAdvertService extends IService<MilAdvert> {

    void upsert(MilAdvertForm milAdvertForm);

    IPage<MilAdvert> getList(Page<MilAdvert> page);

    List<MilAdvertInfo> getList(int pageNum, int pageSize);

    MilAdvertInfo getNew();
}
